package com.ihr360.insurance.model.dto.benefits;

import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/** 模板规则 */
@Entity
@Table
@DynamicUpdate
public class PaymentConfig extends AbstractBenefitConfig {

    private static final long serialVersionUID = -5688332915002902798L;

    /** 法定福利模板 */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(nullable = false)
    private MandatoryBenefitTemplate template;

    public MandatoryBenefitTemplate getTemplate() {
        return template;
    }

    public void setTemplate(MandatoryBenefitTemplate template) {
        this.template = template;
    }
}
